package com.hmdp.service;

import com.hmdp.dto.Result;
import com.hmdp.entity.Blog;
import com.baomidou.mybatisplus.extension.service.IService;
import org.apache.ibatis.annotations.Mapper;

/**
 * <p>
 *  服务类
 * </p>
 *
 * @author 虎哥
 * @since 2021-12-22
 */
public interface IBlogService extends IService<Blog> {

    //探店笔记详情回显
    Result queryBlogById(Long id);
    //点赞功能实现
    Result likeBlog(Long id);

    //实现点赞的排行
    Result queryBlogLikes(Long id);
    //实现发布笔记，并且推送到好友
    Result saveBlog(Blog blog);

    //滚动查询好友笔记
    Result queryBlogOfFollow(Long max, Integer offset);
}
